SG FileSys
ExcludedExt Property

©1998 by Stinga

Enumerator Object     Constants     Error Codes    
Description

Returns or sets string that contains list of file extensions that are not enumerated.

Syntax

object.ExcludedExt As String

The object is expression that evaluates to the Enumerator object.

Remarks

Extensions must be separated with semicolon (:) character.

Example

Following example lists files from the C:/Projects and it's subdirectories. Files and directories with extensions 'obj', 'pch' and 'pdb' are not listed.

 Option Explicit
 Dim en, item
 Set en = CreateObject("SGFileSys.Enumerator")

 en.RootPath = "C:/Projects/"
 en.Recurse = True
 en.NameMask = "*.*"
 en.ExcludedExt = "obj:pch:pdb"

 For Each item In en.Items
    WScript.Echo item.Path
 Next